User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060502 Firefox/1.5.0.3 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.3) Gecko/20060502 Firefox/1.5.0.3 The battery icon doesn't resize. This means that the panel cannot be smaller than about 32 pixels and when it's larger, the battery plugin just looks funny. Reproducible: Always
I'm working on a new battery plugin (using HAL). You can find it here: http://www.foo-projects.org/~nick/plugins/xfce4-battery-plugin-0.0.1.tar.bz2 http://www.foo-projects.org/~nick/plugins/xfce4-battery-plugin.png Maybe it's good to replace the current battery plugin with this one since it'll fix a lot of acpi/apm problem and the panel resize problem. Gr. Nick
Is it a good idea to keep the same name if it's different software ? Or to restart version numbering ? Shouldn't you change the name or bump the current plugin version ?
Well the idea of the plugin is the same of cource, so it would be a bit misleading to change the software name and the version numbers is only 0.0.1 to make clear it's not finished yet, but this will (if it's going to replace the current plugin) change to 4.0.0 or maybe 5.0.0. The biggest problem atm is the lack of tester to give me some feedback. Nick
I've installed it, I'll test it for some days and report any bug I find. But, first, the plugin doesnt resize the panel, it keeps the right size, but the progressbar doesn't have the same size as other one. See screenshot attached for details.
Created attachment 544 Battery plugin
I tried to install it but have checking for gtk+-2.0 >= 2.6.0... not found *** The required package gtk+-2.0 was not found on your system. *** Please install gtk+-2.0 (atleast version 2.6.0) or adjust *** the PKG_CONFIG_PATH environment variable if you *** installed the package in a nonstandard prefix so that *** pkg-config is able to find it. though I have libgtk2.0-dev installed on Ubuntu Dapper
Hmh, ok, the plugin doesnt work at all, it reports 100% / on AC, even when using battery, and battery is discharged. I'm using pmu and apm emulation, don't know if it's a problem.
I've just uploaded the 0.0.2 version, this should fix some problem with other laptops. You can compare the output of the plugin with lshal | grep battery. If it different please attach or send me the lshal output and some lshal -m output (wait a couple of minutes). Nick
This version needs libxfce4util 4.3.90.2 (beta 2 ??) which I don't have and don't want to install svn versions, so I'll test it another time.
Uhm, before replacing the old plugin, the new plugin should atleast support all the platforms that were supported by the previous one.
> This version needs libxfce4util 4.3.90.2 (beta 2 ??) which I don't have and > don't want to install svn versions, so I'll test it another time. I've uploaded 0.0.3 without this dependancy. There is a BUGS file to explaing how to report bugs (and compare / test the plugin with lshal). > Uhm, before replacing the old plugin, the new plugin should atleast support all > the platforms that were supported by the previous one. Of cource, but most of the platform support is for HAL now isn't it?
Tried 0.0.3. Infos stay at what they were when plugin was loaded (here, 95% charged). And progressbar still doesnt have the same size as other ones. corsac@hidalgo: lshal | grep battery [~] udi = '/org/freedesktop/Hal/devices/pmu_battery_0_0' battery.remaining_time = 786 (0x312) (int) info.udi = '/org/freedesktop/Hal/devices/pmu_battery_0_0' (string) battery.charge_level.percentage = 96 (0x60) (int) battery.charge_level.rate = 581 (0x245) (int) battery.charge_level.design = 3199 (0xc7f) (int) battery.charge_level.last_full = 3199 (0xc7f) (int) battery.charge_level.current = 3072 (0xc00) (int) battery.rechargeable.is_discharging = false (bool) battery.rechargeable.is_charging = true (bool) battery.is_rechargeable = true (bool) battery.present = true (bool) info.capabilities = {'battery'} (string list) info.category = 'battery' (string) battery.type = 'primary' (string) info.product = 'Battery Bay' (string) linux.pmu_path = '/proc/pmu/battery_0' (string) corsac@hidalgo: lshal -m [~] Start monitoring devicelist: ------------------------------------------------- pmu_battery_0_0 property battery.remaining_time = 8099 (0x1fa3) pmu_battery_0_0 property battery.charge_level.rate = 1381 (0x565) pmu_battery_0_0 property battery.charge_level.percentage = 96 (0x60) pmu_battery_0_0 property battery.remaining_time = 8083 (0x1f93) pmu_battery_0_0 property battery.charge_level.current = 3101 (0xc1d) pmu_battery_0_0 property battery.remaining_time removed pmu_battery_0_0 property battery.rechargeable.is_discharging = false pmu_info_1 property ac_adapter.present = true pmu_battery_0_0 property battery.remaining_time = 440 (0x1b8) (new) pmu_battery_0_0 property battery.charge_level.rate = 801 (0x321) pmu_battery_0_0 property battery.rechargeable.is_charging = true pmu_battery_0_0 property battery.remaining_time = 449 (0x1c1) pmu_battery_0_0 property battery.charge_level.current = 3099 (0xc1b) pmu_battery_0_0 property battery.remaining_time = 530 (0x212) pmu_battery_0_0 property battery.charge_level.rate = 678 (0x2a6) pmu_battery_0_0 property battery.remaining_time = 515 (0x203) pmu_battery_0_0 property battery.charge_level.current = 3102 (0xc1e) pmu_battery_0_0 property battery.remaining_time = 565 (0x235) pmu_battery_0_0 property battery.charge_level.rate = 617 (0x269) pmu_battery_0_0 property battery.charge_level.percentage = 97 (0x61) pmu_battery_0_0 property battery.remaining_time = 554 (0x22a) pmu_battery_0_0 property battery.charge_level.current = 3104 (0xc20) pmu_battery_0_0 property battery.remaining_time = 590 (0x24e) pmu_battery_0_0 property battery.charge_level.rate = 579 (0x243) pmu_battery_0_0 property battery.remaining_time = 572 (0x23c) pmu_battery_0_0 property battery.charge_level.current = 3107 (0xc23) pmu_battery_0_0 property battery.remaining_time = 598 (0x256) pmu_battery_0_0 property battery.charge_level.rate = 553 (0x229) pmu_battery_0_0 property battery.remaining_time = 585 (0x249) pmu_battery_0_0 property battery.charge_level.current = 3109 (0xc25) pmu_battery_0_0 property battery.remaining_time = 607 (0x25f) pmu_battery_0_0 property battery.charge_level.rate = 533 (0x215) pmu_battery_0_0 property battery.remaining_time = 594 (0x252) pmu_battery_0_0 property battery.charge_level.current = 3111 (0xc27)
Uploaded 0.0.4: * Plugin border to 4px * Change hal property change behaviour, this will probably work for most people now.
Still doesnt work on my (pmu based) box. Value is the one when plugin is loaded (or panel started), but doesnt change after.
Released test version 0.0.5, some HAL fixes and it seems to work for Corsac now. http://foo-projects.org/~nick/plugins/xfce4-battery-plugin-0.0.5.tar.bz2 I'm going to finish the plugin now so it will support (most) of the current battery plugin stuff. If people still have problems with HAL please fill a bug report or send me an email. The following version will have a version number like 0.5.x. Nick
Now the plugin works here. The only thing (yet seen with nick) is the time format displayed next to the progress bar. Currently it's minutes:seconds, while in tooltip it's ##hr ##min. A format like "hours:minutes" would be better, I guess. Regards, Yves-Alexis Perez
I've started a testing branch for the new battery plugin, you can find in the goodies svn: xfce4-battery-plugin/branches/XERVERIUS.
Should be fixed in the 0.4.90.2 release, that will be announced today or so...